package top.itmeans.yes.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 后台用户和权限关系表(除角色中定义的权限以外的加减权限)
 * </p>
 *
 * @author Yiming.Cao
 * @since 2022-05-05
 */
@Getter
@Setter
@TableName("r_admin_permission_relation")
@ApiModel(value = "AdminPermissionRelation对象", description = "后台用户和权限关系表(除角色中定义的权限以外的加减权限)")
public class AdminPermissionRelation implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("后台管理用户权限")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("后台管理用户ID")
    private Long adminId;

    @ApiModelProperty("权限ID")
    private Long permissionId;

    private Integer type;


}
